//package customermanagesystem.demo.Util;
//
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Component;
//
//import java.util.Arrays;
////切面类：1、为目标对象做什么  2、为哪个类的哪个方法做事情
//
//@Component
//@Aspect
//public class MyAspect {
//    Logger logger = LoggerFactory.getLogger(getClass());
//    @Pointcut("execution(* customermanagesystem.demo.controller.*.*(..))")
//    //规定的切入点
//    public void myPoint(){
//
//    }
//    //前置通知
//    @Before("myPoint()")
//    public void before(JoinPoint joinPoint){
////        System.out.println("入参为："+ Arrays.toString(joinPoint.getArgs()));
//        logger.debug("入参为："+ Arrays.toString(joinPoint.getArgs()));
//        logger.info("入参为："+ Arrays.toString(joinPoint.getArgs()));
//        logger.warn("入参为："+ Arrays.toString(joinPoint.getArgs()));
//        logger.error("入参为："+ Arrays.toString(joinPoint.getArgs()));
//    }
//}
